﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BioAttendance
{
    public partial class EmpListForm : Form
    {
        private BioAttendanceEntities dbEntities;
        public EmpListForm(BioAttendanceEntities dbEntities)
        {
            InitializeComponent();
            Initialize();
            this.dbEntities = dbEntities;
            this.employeeBindingSource.DataSource = dbEntities.Employees;
        }

        private void Initialize()
        {
            //
        }

        private void saveButton_Click(object sender, EventArgs e)
        {
            this.dbEntities.SaveChanges();
        }
    }
}
